package jdos.hardware;

public class VGA_misc {
	public static int flg;
    public static IoHandler.IO_ReadHandler vga_read_p3da = new IoHandler.IO_ReadHandler() {
        public /*Bitu*/int call(/*Bitu*/int port, /*Bitu*/int iolen) {
			/*Bit8u*/int retval = 0;
			
			if (flg==1) {
				flg = 0;
				retval |= 8;
			}else {
				retval |= 1;
			}

			return retval;
        }
    };

    static public void VGA_SetupMisc() {
        IoHandler.IO_RegisterReadHandler(0x3da,vga_read_p3da,IoHandler.IO_MB);
    }
    
}
